home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 April: Mac OS SDK / Dev.CD Apr 96 SDK / Dev.CD Apr 96 SDK1.toast / Development Kits (Disc 1) / OpenDoc Development Framework / ODFDev / ODF / Tools / Mac / Startups / Startup•ODF next >
Encoding:
Text File  |  1995-11-08  |  4.6 KB  |  167 lines  |  [TEXT/MPS ]

  1. #========================================================================================
  2. #
  3. #    File:                ODF Startup
  4. #    Release Version:    $ 1.0d11 $
  5. #
  6. #    Copyright:    © 1993, 1995 by Apple Computer, Inc., all rights reserved.
  7. #
  8. #========================================================================================
  9.  
  10. # Set the location of the OpenDoc SDK Folder
  11. # If the folder can't be found; automatically prompts user for it and
  12. # remember where the folder was found
  13.  
  14. if  ¬ "{FWOpenDocSDK}" && "`Exists "{PrefsFolder}"FWOpenDocSDK_Folder`" 
  15.     Set FWOpenDocSDK     "`Catenate "{PrefsFolder}"FWOpenDocSDK_Folder`"
  16. End
  17. if ¬ "`Exists "{PrefsFolder}"FWOpenDocSDK_Folder`" || ¬ "`Exists "{FWOpenDocSDK}"`"
  18.     Set exit 0
  19.     Set temp "{Boot}"
  20.     Loop
  21.         Set temp "`(GetFileName "{temp}" -q -d -m "Select ∂"OpenDoc SDK∂" folder?")≥dev:null`"
  22.         if "{temp}"!=""
  23.             Echo -n "{temp}" > "{PrefsFolder}"FWOpenDocSDK_Folder
  24.             Set FWOpenDocSDK "{temp}"
  25.         Else
  26.             exit
  27.         End
  28.         (set x "`Exists "{temp}Interfaces:"`") ≥dev:null
  29.         if  "{x}"==""
  30.             Alert ODF - The ∂"{temp}∂" folder does not contain OpenDoc SDK files.
  31.         else
  32.             break
  33.         end
  34.     End
  35.     set exit 1
  36. End
  37.  
  38. Set FWOpenDocSDK "`Catenate "{PrefsFolder}"FWOpenDocSDK_Folder`"
  39. Export FWOpenDocSDK
  40.  
  41. #    {FWODHandMadeIncludes} - The path to the OpenDoc HandMade Includes Folder.
  42.         Set FWODHandMadeIncludes "{FWOpenDocSDK}Interfaces:HandMade:"
  43.         Export FWODHandMadeIncludes
  44.  
  45. #    {FWODIDLIncludes} - The path to the OpenDoc Includes Folder.
  46.         Set FWODIDLIncludes "{FWOpenDocSDK}Interfaces:IDL:"
  47.         Export FWODIDLIncludes
  48.  
  49. #    {FWODCppIncludes} - The path to the OpenDoc CPlusCPlus Includes Folder.
  50.         Set FWODCppIncludes "{FWOpenDocSDK}Interfaces:CPlusPlus:"
  51.         Export FWODCppIncludes
  52.  
  53. #    {FWODPublicUtilitiesIncludes} - The path to the OpenDoc Public Utilities Includes Folder.
  54.         Set FWODPublicUtilitiesIncludes "{FWOpenDocSDK}OpenDoc Utilities:Interfaces:"
  55.         Export FWODPublicUtilitiesIncludes
  56.  
  57. #    {FWODRIncludes} - The path to the OpenDoc RIncludes Folder.
  58.         Set FWODRIncludes "{FWOpenDocSDK}Interfaces:Rez:"
  59.         Export FWODRIncludes
  60.  
  61. ################################################################################
  62. # Stuff you probably don't want to mess with
  63. ################################################################################
  64.  
  65. #    {ODFDev} - The name of the Folder Containing ODF.
  66. if ¬ "{ODFDev}"
  67.         Set ODFDev "{ODF}:"
  68.         Export ODFDev
  69. end
  70.  
  71. #    {FWBldEnvDir} - The name of the Folder Containing the build environment
  72. #
  73. #    (We default to CodeWarrior PPC - Debug. Your build script should reset this.)
  74. #
  75. if ¬ "{FWBldEnvDir}"
  76.         Set FWBldEnvDir "{ODFDev}CWPPCDebug:"
  77.         Export FWBldEnvDir
  78. end
  79.  
  80. #    {FWLibDir} - The path to the ODF Libraries Folder.
  81. if ¬ "{FWLibDir}"
  82.         Set FWLibDir "{FWBldEnvDir}"Lib:
  83.         Export FWLibDir
  84. end
  85.  
  86. #    {FWBinDir} - The path to the ODF Binaries Folder.
  87. if ¬ "{FWBinDir}"
  88.         Set FWBinDir "{FWBldEnvDir}"Bin:
  89.         Export FWBinDir
  90. end
  91.  
  92. #    {FWToolsDir} - The path to other ODF Tools Folder
  93. if ¬ "{FWToolsDir}"
  94.         Set FWToolsDir "{ODF}"Tools:Mac:
  95.         Export FWToolsDir
  96. end
  97.         
  98. #    {FWMakefileName} - The Name of FWBuild's MakeFiles
  99. if ¬ "{FWMakefileName}"
  100.         Set FWMakefileName "MacMake"
  101.         Export FWMakefileName
  102. end
  103.  
  104. #    {FWMakefileExt} - The extension of FWBuild's MakeFiles
  105. if ¬ "{FWMakefileExt}"
  106.         Set FWMakefileExt ".bmk"
  107.         Export FWMakefileExt
  108. end
  109.  
  110. #    {FWTempDir} - The Location for FWBuild's temporary files
  111. if ¬ "{FWTempDir}"
  112.         Set FWTempDir "{MPW}"
  113.         Export FWTempDir
  114. end
  115.  
  116. #    {FWTempExt} - The extension for FWBuild's temporary files
  117. if ¬ "{FWTempExt}"
  118.         Set FWTempExt ".tmp"
  119.         Export FWTempExt
  120. end
  121.  
  122. #    {FWAutoTargets} - The name of the auto-targets file
  123. if ¬ "{FWAutoTargets}"
  124.         Set FWAutoTargets "{FWToolsDir}"autotarg.txt
  125.         Export FWAutoTargets
  126. end
  127.  
  128. #    {FWPreMake} - The name of FWBuild's Premake file
  129. if ¬ "{FWPreMake}"
  130.         Set FWPreMake "{FWToolsDir}"MacMake.dfn
  131.         Export FWPreMake
  132. end
  133.  
  134. #    {FWPostMake} - The name of FWBuild's Premake file
  135. if ¬ "{FWPostMake}"
  136.         Set FWPostMake "{FWToolsDir}"MacMake.rul
  137.         Export FWPostMake
  138. end
  139.  
  140. #    {FWPreCompHdrDir} - The name of the Folder Containing Precompiled headers.
  141. #
  142. if ¬ "{FWPreCompHdrDir}"
  143.         Set FWPreCompHdrDir ":Precompile∂ Headers:"
  144.         Export FWPreCompHdrDir
  145. end
  146.  
  147. #    {CFM68KLibraries} - Directory that contains CFM-68K static link libraries.         
  148. if ¬ "{CFM68KLibraries}"
  149.             Set CFM68KLibraries "{MPW}Libraries:CFM68KLibraries:"
  150.             Export CFM68KLibraries
  151. end
  152.             
  153. #    {SharedLibraries} - Directory that contains "fat" PEF-format import libraries.         
  154. if ¬ "{SharedLibraries}"
  155.             Set SharedLibraries "{MPW}Libraries:SharedLibraries:"
  156.             Export SharedLibraries
  157. end
  158.             
  159.  
  160. #    {Commands} - Directories to search for commands.
  161.         Set Commands "{FWToolsDir},{Commands}"
  162.         Export Commands
  163.  
  164. alias Build68KCFM 'FWBuild -SymantecCFM -modelCFM'
  165.  
  166.